<?php
// 开启session
session_start();


// 清除自动登录remember-token
$_SESSION['logout'] = true;

if (isset($_SESSION['user'])) {
  unset($_SESSION['user']);
  unset($_SESSION['cart']);
}
header('Location:../public/index.php');